package com.zhulong.saas.cloud.gateway.error;

import com.zhulong.common.basic.exception.ErrorCodeI;

public enum GatewayBasicError implements ErrorCodeI {

    UNAUTHORIZED("0002001", "未授权"),

    FORBIDDEN("0002002","权限不足"),

    SERVER_UNVALIBLE("0002003", "服务暂不可用");

    private String errorCode;

    private String errorDesc;

    GatewayBasicError(String errorCode, String errorDesc) {
        this.errorCode = errorCode;
        this.errorDesc = errorDesc;
    }


    @Override
    public String getErrCode() {
        return errorCode;
    }

    @Override
    public String getErrDesc() {
        return errorDesc;
    }
}
